package adfc2.render3d.tex;

import adfc2.Renderer3D;
import adfc2.render3d.TextureReference;
import com.sun.opengl.util.texture.Texture;

public final class TexRefSimple extends TextureReference {

    public final Texture texture;

    public TexRefSimple(Texture texture) {
        this.texture = texture;
    }

    @Override
    public void activate(Renderer3D renderer) {
        renderer.ensureTextureSelected(texture);
        renderer.ensureTextureTile(0, 1, 1);
    }
}
